package com.sy.behavioral.state;

public class MainTest {

    public static void main(String[] args) {

        Team team = new Team();
        EatState eatState = new EatState();
        team.setGameSate(eatState);
        team.win();
        GameSate sleepState = eatState.next();
        team.setGameSate(sleepState);
        team.win();
    }

}
